home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
emacssrc.zip
/
EMACSSRC.TAR
/
emacs-19.17
/
nmkfile
< prev
next >
Wrap
Text File
|
1993-12-06
|
3KB
|
80 lines
#
# Hacked up Nmake makefile for GNU Emacs
#
# Geoff Voelker (voelker@cs.washington.edu) 11-20-93
#
# This file is part of GNU Emacs.
#
# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#
#
# Set this to be the directory into which you want emacs installed
#
INSTALL_DIR = D:\users\voelker\ntemacs\test
SUBDIRS = src lib-src lisp
#
# Build emacs
#
all:; for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile all & cd ..
#
# Build and install emacs in INSTALL_DIR
#
CP = xcopy /frei
install: all
- mkdir $(INSTALL_DIR)
for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile INSTALL_DIR=$(INSTALL_DIR) install & cd ..
del /q .\same-dir.tst
del /q $(INSTALL_DIR)\same-dir.tst
echo SameDirTest > .\same-dir.tst
if not exist $(INSTALL_DIR)\same-dir.tst nmake -f nmkfile real_install
del /q .\same-dir.tst
#
# This installs executables from .\bin into the installation directory
# without building anything.
#
fast_install:
- mkdir $(INSTALL_DIR)\data
xcopy /fr .\lib-src\DOC $(INSTALL_DIR)\data
- mkdir $(INSTALL_DIR)\bin
del /q .\same-dir.tst
del /q $(INSTALL_DIR)\same-dir.tst
echo SameDirTest > .\same-dir.tst
if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\emacs.exe $(INSTALL_DIR)\bin
if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\etags.exe $(INSTALL_DIR)\bin
if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\ctags.exe $(INSTALL_DIR)\bin
if not exist $(INSTALL_DIR)\same-dir.tst nmake -f nmkfile real_install
del /q .\same-dir.tst
real_install:
xcopy /fr emacs.cmd $(INSTALL_DIR)
- mkdir $(INSTALL_DIR)\etc
$(CP) .\etc $(INSTALL_DIR)\etc
- mkdir $(INSTALL_DIR)\info
$(CP) .\info $(INSTALL_DIR)\info
- mkdir $(INSTALL_DIR)\lock
#
# Maintenance
#
clean:; del /q *~
delnode /q deleted
for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile clean & cd ..